<template>
	<view class="notice-list">
		<view class="list-items">
			<view class="items" v-for="item in noticeList" >
					{{item.msg.title}}
			</view>
		</view>
	</view>
</template>

<script>
	import {
		notice
	} from '@/pages/api/orderp/orderp.js'
	export default {
		data(){
			return {
				noticeList:[]
			}
		},
		mounted() {
			this.getnotice()
		},
		methods:{
			getnotice(){
				notice().then(res=>{
					console.log('消息',res.rows)
					this.noticeList = res.rows
				})
			}
		}
	}
</script>

<style lang="scss"  scoped >
	.notice-list{
		height: 100vh;
		background-color: #FFFFFF;
		.list-items{
			padding: 20rpx;
			.items{
				
			}
		}
	}
</style>
